package com.example.eurekaconsumerfeign.controller;

import com.example.eurekaconsumerfeign.service.EurekaClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DocController {

    @Autowired
    EurekaClientService eurekaClientService;

    @GetMapping("/consumer")
    public String dc() {
        return eurekaClientService.consumer();
    }
}
